﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RayTracing
{
    public class multiSkin : Skin
    {
        Skin skin1, skin2;

        public multiSkin(Skin skin1, Skin skin2)
        {
            this.skin1 = skin1;
            this.skin2 = skin2;

        }

        #region Skin Members

        public Color color(P3 point, Ray ray, SceneObject sceneObject)
        {
            return Color.add(skin1.color(point, ray, sceneObject), skin2.color(point, ray, sceneObject)); 
        }

        #endregion
    }
}
